package common.web.action;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import common.hibernate.service.BaseService;
import common.rbac.po.Authority;
import common.web.vo.Result;

@Controller
@RequestMapping("/system/authority")
public class AuthorityAction extends MultiActionController {
	@Autowired
	@Qualifier("baseServiceImpl")
	protected BaseService baseService;

	@RequestMapping("/list")
	@ResponseBody
	public Result list() {
		return Result.createResult(baseService.loadAll(Authority.class));
	}
}
